
import account from "./main/Account.vue";
import goodlist from './main/GoodsList.vue'
//导入Account的两个子组件
import login from './subCom/login.vue'
import register from './subCom/register.vue'


import VueRouter from "vue-router"

var router = new VueRouter({
    routes: [
        {
            path:'/account',
            component: account,
            children:[
                {path:'login',component: login},
                {path:'register',component: register},
            ],
        
        },
        {path:'/goodlist',component: goodlist},
    ],
})

export default router